﻿using Forum.Model.Pager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Forum.Model.Response
{
    public class ApiResponsePaged<T> : ApiResponse<List<T>> where T : class
    {
        public int total { get; set; }
        public bool haveMore { get; set; }
        public ApiResponsePaged()
        {

        }

        public ApiResponsePaged(IPagedList<T> pagedList)
        {
            data = pagedList.ToList();
            total = pagedList.Total;
        }
    }
}
